# packaging

## Packaging

### Tarballs
To create tarballs package you need to follow the following steps:
```
# Enter Packaging Directory
$ cd packaging
# execute the script to generate tarballs
$ ./tarballs.sh
```

### RPM 
#### (Fedora/CentOS/RedHat)
To create rpm package you need to follow the following steps:
```
# Enter Packaging Directory
$ cd packaging/rpm
# execute the script to generate tarballs
$ ./make_rpm.sh
```

### DEB 
#### (Debian/Ubuntu)
To create deb package you need to follow the following steps:
```
# Enter Packaging Directory
$ cd packaging/deb
# execute the script to generate tarballs
$ ./make_deb.sh
```

## Install and Uninstall

### Install Linux Tarballs
On Unix/Linux system you need to execute the following command to install:

`$ sudo tar xjf miptgraph-{version}.tar.bz2`

to uninstall:

`$ sudo rm -f /usr/include/miptgraph.hpp /usr/include/miptgraph*`

### Install RPM
On Fedora/CentOS/RedHat system you need to execute the following command to install:

`$ sudo rpm -ivh miptgraph-{version}.noarch.rpm`

to uninstall:

`$ sudo rpm -e miptgraph-{version}`

### Install DEB
On Debian/Ubuntu system you need to execute the following command to install:

`$ sudo dpkg -i miptgraph_{version}.deb`

to uninstall:

`$ sudo apt-get remove miptgraph`

### Install From Source
You can install from source the library using CMake. After the compilation phase, you can use:

`$ sudo make install`

to install the library.

